<h2><%= @title %></h2>
<%= error_messages_for 'user' %>
<%= form_for :user do |form| %>
<fieldset>
	<legend>
		Email
	</legend>
	<%= render :partial => "email_field_row", :locals => { :form => form } %>
	<%= hidden_field_tag "attribute", "email", :id => nil%>
	<%= submit_tag "Actualizar", :class => "submit" %>
</fieldset>
<% end %>
<%= form_for :user do |form| %>
<fieldset>
	<legend>
		Password
	</legend>
	<%= render :partial => "password_field_row",
	:locals => { :form => form,
	:field => "current_password",
	:field_title => "Actual password" } %>
	<%= render :partial => "password_field_row",
	:locals => { :form => form,
	:field => "password",
	:field_title => "Nuevo password" } %>
	<%= render :partial => "password_field_row",
	:locals => { :form => form,
	:field => "password_confirmation",
	:field_title => "Confirmar password" } %>
	<%= hidden_field_tag "attribute", "password", :id => nil %>
	<%= submit_tag "Actualizar", :class => "submit" %>
</fieldset>
<% end %> 